#include <iostream>
using namespace std;

#include "TObject.h"
#include "TObjectList.h"
/*
class A
{
    public:
        ~A()
        {
            cout<<"destrucation A"<<endl;
        }
};*/
int main()
{
    {
        TObject * obj1 = new TObject(3);
        cout<<obj1->getInt()<<endl;

        TObject * obj2 = new TObject(3.5f);
        cout<<obj2->getFloat()<<endl;

        TObject * obj3 = new TObject("fskdfjks");
        cout<<obj3->getString()<<endl;

        TObjectList * list = new TObjectList();
        list->push_back(obj1);
        list->push_back(obj2);
        list->push_back(obj3);

        TObject * obj4 = new TObject(2232.54f);
        cout<<obj4->getFloat()<<endl;

        TObjectList list1;
        list1.push_back(list);
        list1.push_back(obj4);

        cout<<list1.getObjectList(0)->getObject(2)->getString()<<endl;
        //A a;
    }
    return 0;
}
